import testModel from './test';
import menuModel from './menu';


export default function mymodel(app: any, init: any) {
    const models = [testModel, menuModel];
    models.forEach(m => {
        if (init && init[m.namespace]) {
            m.state = init[m.namespace];
        }
        app.model(m);
    }
    );
}
